package com.yun.zf.common.admin.model.customer;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class CustomerBasicMo {

    @ApiModelProperty(value = "主键id")
    private String id;
    @NotBlank(message = "客户姓名不能为空")
    @ApiModelProperty(value = "客户姓名")
    private String name;
    @NotBlank(message = "手机号码不能为空")
    @ApiModelProperty(value = "手机号码")
    private String phone;
    @ApiModelProperty(value = "证件号码")
    private String certificateNo;
    @ApiModelProperty(value = "证件类型")
    private Integer certificateType;
    @ApiModelProperty(value = "邮箱")
    private String email ;
    @ApiModelProperty(value = "性别")
    private String sex;
    @ApiModelProperty(value = "生日")
    private String birthday;
    @ApiModelProperty(value = "国籍")
    private String citizenship;

/*    private String phoneHide;*/


  /*  public String getPhone() {
        return phone.replaceAll("(\\d{3})\\d{4}(\\d{4})","$1****$2");
    }
    public void setPhone(String phone) {
        this.phone = phone;
    }
*/

}
